package jdk7demo2;


import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;


public class Test2 {
    public static void main(String[] args) throws ParseException {
        String s1 = "2000-11-11";
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");
        Date d = sdf1.parse(s1);
        System.out.println(d);

        SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy年MM月dd日");
        String s = sdf2.format(d.getTime());
        System.out.println(s);
    }
}
